package com.skyline.jfs.namespace.model;

import java.util.Date;

public class JFSDirectory {
	
	private Long id;				//id
	private Long parent;			//父目录
	private String name;			//文件目录名称
	private String path;			//路径，记录下从根目录到这个目录的路径
	private Integer fileNum;		//目录下的文件数
	private Integer subDirNum;		//目录下的子目录数
	private Date createdTime;		//创建时间
	private Date updateTime;		//修改时间
	private Boolean exist;			//存在位，标识这个目录是否还存在
	/*
	 * 权限：
	 * 
	 * 个位数：
	 * 		0：只读；不可向里面增加文件；
	 * 		1：读写；可以向里面增加文件；
	 * 		2：读写执行；可以向里面增加文件，可以删除；
	 */
	private Integer permission;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getParent() {
		return parent;
	}
	public void setParent(Long parent) {
		this.parent = parent;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public Integer getFileNum() {
		return fileNum;
	}
	public void setFileNum(Integer fileNum) {
		this.fileNum = fileNum;
	}
	public Integer getSubDirNum() {
		return subDirNum;
	}
	public void setSubDirNum(Integer subDirNum) {
		this.subDirNum = subDirNum;
	}
	public Date getCreatedTime() {
		return createdTime;
	}
	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Boolean getExist() {
		return exist;
	}
	public void setExist(Boolean exist) {
		this.exist = exist;
	}
	public Integer getPermission() {
		return permission;
	}
	public void setPermission(Integer permission) {
		this.permission = permission;
	}
	
}

